Information processing apparatus, information processing method, and computer-readable medium

ABSTRACT

First device information, which is information independent from settings of a device or functions of a device, is obtained from a device in bulk; second device information, which is information that depends on settings of a device or functions of a device, is obtained; and the obtained first and second device information are stored in a storage unit. A device connected through communication is then specified on the basis of the obtained first device information.

BACKGROUND OF THE INVENTION

Field of the Invention

The present invention relates to an information processing apparatus, aninformation processing method, and a computer-readable medium thatcontrol a network device through network management software that uses aprotocol such as SNMP.

Description of the Related Art

Simple Network Management Protocol (SNMP) has been devised in order tomanage devices and the like located on a network, and is used as acommunication protocol when managing devices and the like. A networkmanagement system that uses the SNMP can obtain and change theconfiguration of management information for a network device to bemanaged, which is called a “managed node”. Meanwhile, communicationusing the SNMP can obtain multiple pieces of attribute information inbulk by specifying multiple attributes in a single SNMP message. Whenobtaining multiple pieces of attribute information in bulk, anobtainment error for even a single piece of information to be obtainedwill result in an error in the SNMP request itself. Accordingly, amethod that prevents information obtainment errors by creating an SNMPrequest message excluding the attribute portion that caused theobtainment error and issuing the request again has been proposed (seeJapanese Patent Laid-Open No. 8-292922).

However, when carrying out communication such as a device search aimedat multiple managed nodes using the SNMP, executing a resending processfor devices that returned an error when obtaining information can causea tremendous increase in communication traffic. Meanwhile, in the casewhere multiple attributes causing obtainment errors are present in themultiple attributes to be obtained, the communication traffic willincrease in proportion to the number of error items.

SUMMARY OF THE INVENTION

The present invention makes it possible to obtain multiple pieces ofinformation regarding a device while reducing the influence thereof oncommunication traffic.

An information processing apparatus according to the present inventionhas the following configuration.

According to a first aspect, there is provided an information processingapparatus comprising: a first obtainment unit that obtains first deviceinformation from a device in bulk, the first device information beinginformation independent from settings of the device or functions of thedevice; a second obtainment unit that obtains second device informationfrom a device, the second device information being information thatdepends on settings of the device or functions of the device; a storageunit that stores the first device information obtained by the firstobtainment unit and the second device information obtained by the secondobtainment unit; and a specifying unit that specifies a device connectedthrough communication on the basis of the first device informationobtained by the first obtainment unit.

According to the present invention, multiple pieces of informationregarding a device can be obtained while suppressing communicationtraffic.

Further features of the present invention will become apparent from thefollowing description of exemplary embodiments with reference to theattached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram illustrating the configuration of an informationcollecting apparatus and a device according to a first embodiment.

FIG. 2 is a diagram illustrating the software configuration of a hostcomputer according to the first embodiment.

FIG. 3 is a flowchart illustrating processing executed by the hostcomputer according to the first embodiment.

FIG. 4 is a diagram illustrating an example of a search result list.

DESCRIPTION OF THE EMBODIMENTS

In the invention according to the present embodiment, when searching fora device using the SNMP, and SNMP ver.1 in particular, information to beobtained is not handled as a single entity, but is instead divided intoinformation assumed to be obtainable regardless of settings, functions,and so on of the device (device-independent information) and informationthat may or may not be obtainable depending on the settings, functions,and so on of the device (device-dependent information), and obtained assuch. Dividing the obtainment of information in accordance with the typeof the information makes collective error processing on the obtainedinformation unnecessary, which in turn makes it possible to search fordevices and obtain (or collect) multiple pieces of device informationwhile reducing effects on communication traffic.

First Embodiment System Configuration

FIG. 1 is a block diagram schematically illustrating a device managementsystem including a host computer 1 (“host” hereinafter), serving as anexample of an information processing apparatus according to the presentinvention, and a plurality of printers. The present embodiment describesan example in which the devices to be managed are printers and a processthrough which the host searches for those printers is carried out. Notethat the printers are not limited to single-function printers, and maybe multi-function printers that combine, for example, a printer functionwith a scanner function or the like. Likewise, the devices to be managedare not limited to printers, and may be other information processingapparatuses.

As illustrated in FIG. 1, the host 1 and a printer 2 are connected toeach other by a predetermined bidirectional interface 3. A personalcomputer (PC) can be given as an example of the host 1. The host 1functions as an information collecting apparatus that obtains deviceinformation from the printer 2, which is a connected device. The host 1includes a main board 109 having a CPU 101 and the like, a keyboard 110,a display 111 such as an LCD, and a storage device 112 such as a harddisk (HDD). The main board 109 further includes a RAM 102, a ROM 103,and a keyboard controller (KBC) 106 that controls input from thekeyboard 110, a pointing device (not illustrated), and the like. Thekeyboard controller 106 is also called an “operating unit” or an “inputunit”. A display controller (DISPC) 107 controls a display made by thedisplay 111. The RAM 102 functions as a main memory or a work area forthe CPU 101. The ROM 103 stores a boot program and the like.

A disk controller (DKC) 108 controls access to the storage device 112such as a hard disk. The storage device 112 stores an update program, anoperating system, various types of applications, and so on that executevarious functions according to the present embodiment. Protocol stacksincluding SNMP, TCP/IP serving as the base thereof, and so on are alsostored in the storage device 112 as program files.

An interface controller (I/F C) 104 is connected to the printer 2 by thebidirectional interface 3, which is realized through communication overa LAN or the like, and controls processes for communicating data andcommands with the printer 2.

The printer 2 includes a controller 121, a printer engine 125, a consolepanel 124, and a non-volatile storage device 138, and is connected tothe host 1 by the bidirectional interface 3. The non-volatile storagedevice 138 includes a hard disk (HDD) 122 or an EEPROM 123. Thenon-volatile storage device is also called a “non-volatile memory”.

The controller 121 includes a CPU 114, a ROM 115, a RAM 116, aninterface controller (I/F C) 113, a disk controller (DKC) 118, a panelinterface (I/F P) 119, and an engine interface (I/F E) 120).

The CPU 114 performs overall control of the respective statedconstituent elements connected to a system bus 117, and executes varioustypes of programs. The ROM 115 receives print image data and commandsfrom the host 1, and stores programs, various types of data, and so onfor realizing optimal printing by controlling the printer engine 125.The RAM 116 is used as a work area for temporarily storing various typesof data, various types of programs, and so on. Protocols including SNMP,TCP/IP serving as the base thereof, and so on are also stored in the ROM115. Meanwhile, a management information base (MIB) including deviceinformation and the like of the printer 2 is stored in one of thestorage units, such as the ROM 115, the HDD 122, or the like.

The interface controller (I/F C) 113 is connected to the host 1 by thebidirectional interface 3, and controls processes for communicating dataand commands with the host 1. The hard disk (HDD) 122 stores large-sizedata such as data from the host 1, additional information associatedwith that data, and so on. The EEPROM 123 stores information unique torecording devices used during recording operations. The disk controller(DKC) 118 controls access to the hard disk 122, which is a non-volatilestorage device, the EEPROM 123, and so on. The panel interface (I/F P)119 controls displays made in the console panel 124, inputs from theconsole panel 124, and so on. The engine interface (I/F E) 120 controlsthe printer engine 125 for realizing optimal recording by directlycontrolling hardware.

A printer engine that employs an ink jet recording method, a printerengine that employs an electrophotographic method, or the like can beused for the printer engine 125.

Device Management System

FIG. 2 is a block diagram illustrating the configuration of a searchfunction in a device management system according to the presentembodiment. Functions of the host computer will be described. Anapplication 201 is a program executed by the host 1, and executes aprocess for searching for devices connected to the bidirectionalinterface 3.

A search processing unit 202 is a processing unit that handles a processfor searching devices, and includes a bulk information obtainment unit203, an individual information obtainment unit 204, and a search resultsaving unit 205. The bulk information obtainment unit 203 executes asending process for sending SNMP search packets to a plurality ofdevices and a process for receiving response packets from the devices.Although the process for sending to a plurality of devices is describedas broadcast communication in the present embodiment, this communicationmay be multicast instead.

The individual information obtainment unit 204 executes a sendingprocess for sending individual information obtainment packets to eachdevice through unicast and a process for receiving response packets fromthe devices.

The search result saving unit 205 executes a process for savinginformation in a search result list 206 on the basis of obtainmentresult information and an obtainment error state in the bulk informationobtainment unit (or bulk obtainment unit) 203 and the individualinformation obtainment unit (or individual obtainment unit) 204. Thesearch result list 206 is a database that holds search resultinformation obtained by the search processing unit 202 as a searchresult list. Details of the search result list saved as the searchresult list 206 according to the present embodiment will be describedwith reference to FIG. 4.

Obtainment Processing Sequence

FIG. 3 is a flowchart illustrating the flow of processing performed by asearch program (which is stored in the storage device 112 of the host 1)that executes various functions according to the present embodiment. Thesequence in FIG. 3 is realized by the search program being loaded intothe RAM 102 and executed by the CPU 101.

Upon the search processing unit 202 of the application 201 beingexecuted, first, the host 1 broadcasts an SNMP search packet to thebidirectional interface 3 (301). The search packet requests informationthat can be received regardless of the settings, functions, and so on ofthe device (called “common information” or “device-independentinformation”), and thus a GetRequest is used, for example. In thepresent embodiment, information for identifying the device, such as aMAC address 401, a serial number 402, and a model name 403 as indicatedin FIG. 4, serves as the device-independent information obtained throughthe search packet broadcast. In this manner, a plurality of types ofdevice-independent information are requested in bulk. At this time,multiple object designation packets are used in order to request aplurality of types of device-independent information. A device that hasreceived a search packet responds with a Response packet.

The following processing is continued until a predetermined time limitis reached after the search packet has been sent (302). That is, thesystem stands by for a response packet (Response) from a target device,the processing from step 304 to step 311 is executed upon the responsepacket being received, and once that processing ends, the system standsby to receive the next response packet in step 303. If there is aresponse packet that has already been received at this point in time,the processing from step 304 on may be executed immediately for thatpacket. A device that returns a response within the time limit is adevice discovered (specified) through the search.

After the SNMP search packet is sent in step 301, a reception processfor receiving a response packet from each device is carried out (303).In the case where a packet has been received from a device, it isdetermined whether the error code of the received packet is noError(indicating no error) (304). In the case where the error code is notnoError, the information is not added to the search result list 206;instead, the processing for the response packet from that device isended, and the reception processing is continued from the next device(printer, in the present embodiment).

In the case where the response from the printer to the search packetindicates noError, the obtained information is added to the searchresult list, a variable i is reset to 0, and the processing from steps306 to 311 is continued. There are cases where, depending on therequest, the received response includes a plurality of types of deviceinformation. The obtained information is registered in the search resultlist 206 by information type, in association with a device ID of thedevice that sent the response packet, for example.

In the processing from steps 306 to 311, information that can or cannotbe received depending on the settings, functions, and so on of thedevice is obtained by unicasting obtainment packets on anattribute-by-attribute basis. This information that can or cannot bereceived depending on the settings, functions, and so on of the deviceis information provided in accordance with the configuration, settings,and so on of the device, for example, and is called “individualinformation” or “device-dependent information”. In the presentembodiment, a Bonjour name 404 and a DeviceID 405 indicated in FIG. 4serve as the device-dependent information obtained when obtaining theindividual information. The Bonjour name 404 may be unable to respond toa request to obtain the individual information and result in an error inthe case where a Bonjour function (a function for assigning IP addressesand host names, automatically discovering services, and so on) is turnedoff on the printer side. The DeviceID may be unable to be obtaineddepending on the functions of the device. For example, although DeviceIDinformation associated with a Scan function can be obtained from adevice having a Scan function, such DeviceID information cannot beobtained from other devices, which results in the obtainment requestfailing. In this manner, there are cases where the device-dependentinformation cannot be obtained.

The processes of steps 307 to 310 are repeated for the attributes whoseinformation is to be obtained, and the process ends for that device oncesteps 307 to 310 have ended for all of the attributes (306). Whenobtaining the individual information, a request packet for obtaining asingle piece of information is unicast on an attribute-by-attributebasis (307). The target (destination) of the request packet in this stepis the device that sent the response packet received in step 303. Atthis time, a single object designation packet is used in order torequest a single type of device information. In the present embodiment,the Bonjour name and the DeviceID are requested using independentrequest packets (individual information obtainment packets, in otherwords). A response packet is then received from the device for each ofthe individual information obtainment packets (308). After receiving theresponse packet, the received response packet is analyzed and it isdetermined whether or not there is noError (no error) (309). In the casewhere the received packet is not noError, the process moves on toobtaining the next attribute (311). However, in the case where thereceived packet is noError, the obtained information is added to thesearch result list 206 (310), after which the process moves on toobtaining the next attribute (311). At this time, the informationobtained (received) in step 308 corresponds to the information obtained(received) in step 303 and is therefore saved in association with theinformation obtained (received) in step 303.

FIG. 4 is a diagram illustrating an example of the search resultinformation stored in the search result list 206. The MAC address 401,serial number 402, and model name 403 of each device are in the presentembodiment information obtained through the process of step 303 andregistered in step 305, and are information that can be obtainedregardless of the settings of the device. The Bonjour name 404 andDeviceID 405 are in the present embodiment information obtained throughthe process of step 308 and registered in step 310, and are informationthat can or cannot be obtained depending on the settings or functions ofthe device. In FIG. 4, a printer having a MAC address of “000085AABBCC”is an example of a device for which all of the information has beensuccessfully obtained. However, a printer having a MAC address of“000085DDEEFF” is an example of a device where the Bonjour name 404 andDeviceID 405 have both returned obtainment errors with respect toindividual information obtainment packets. Note that the individualinformation is requested individually for each type of information, andthus there are also cases where only one of these pieces of informationis successfully obtained. In this manner, in the present embodiment, thedevice-independent information can be obtained and device search resultscan be obtained even in the case where the individual information cannotbe obtained.

Although the device-independent information and the device-dependentinformation are determined in advance in the present embodiment, theinvention is not limited thereto. For example, one of thedevice-dependent information and the device-independent information maybe determined in advance, and information not belonging to theinformation determined in advance may be handled as the other type ofinformation. The MIB has a tree structure, and thus information at apredetermined or lower node may be set as the device-independentinformation or the device-dependent information. In either case, thedevice-independent information and the device-dependent information aredetermined prior to executing the sequence illustrated in FIG. 3 (arepredetermined, in other words), and information for distinguishingbetween the two is stored in the storage device 112, for example. Then,when a request for information is issued to a device, the informationfor distinguishing between the device-dependent information and thedevice-independent information is referred to, and packets forrequesting the information handled in step 301 and in step 307,respectively, are then sent.

Although device information that was not successfully received throughthe foregoing sequence is not updated until the next collection, theinvention is not limited thereto, and a predetermined number of requestsmay be resent for device information that was not successfully received.In the case of a timeout, it is possible that the device has been turnedoff or communication has been interrupted, and it is therefore desirableto attempt the resend after a predetermined amount of time has passed.

In addition, although the above embodiment describes obtaining thedevice-dependent information individually, the invention is not limitedthereto, and the device-dependent information may be obtained in bulk.In other words, a plurality of types of the device-dependent informationmay be obtained in bulk. In the present embodiment, a process forobtaining information assumed to be returnable regardless of thesettings, functions, and so on of the device, and a process forobtaining information that may or may not be returnable depending on thesettings of the device, the functions of the device, or both, arecarried out separately. Devices to be managed can then be searched(discovered) on the basis of at least the device-independentinformation, which does not depend on the settings, functions, and so onof the device. In this manner, according to the present embodiment, thedevice-independent information can be obtained regardless of the resultof obtaining the device-dependent information, which makes it possibleto suppress the device search from failing. Furthermore, by combiningthe results of returning the device-independent information and thedevice-dependent information as the search result, a plurality of piecesof information can be obtained through the search while suppressingcommunication traffic.

Note that when searching for devices using the SNMP, it is necessary tocommunicate with a device several times in the case where a plurality ofpieces of information are obtained one at a time; this extends theprocessing time and increases the communication traffic. As opposed tothis, according to the present embodiment, the device-dependentinformation is obtained in bulk when searching for devices using theSNMP. Through this, a device search can be executed and a plurality ofpieces of attribute information can be obtained while reducing theeffects on communication traffic.

Other Embodiments

Embodiments of the present invention can also be realized by a computerof a system or apparatus that reads out and executes computer executableinstructions (e.g., one or more programs) recorded on a storage medium(which may also be referred to more fully as a ‘non-transitorycomputer-readable storage medium’) to perform the functions of one ormore of the above-described embodiments and/or that includes one or morecircuits (e.g., application specific integrated circuit (ASIC)) forperforming the functions of one or more of the above-describedembodiments, and by a method performed by the computer of the system orapparatus by, for example, reading out and executing the computerexecutable instructions from the storage medium to perform the functionsof one or more of the above-described embodiments and/or controlling theone or more circuits to perform the functions of one or more of theabove-described embodiments. The computer may comprise one or moreprocessors (e.g., central processing unit (CPU), micro processing unit(MPU)) and may include a network of separate computers or separateprocessors to read out and execute the computer executable instructions.The computer executable instructions may be provided to the computer,for example, from a network or the storage medium. The storage mediummay include, for example, one or more of a hard disk, a random-accessmemory (RAM), a read only memory (ROM), a storage of distributedcomputing systems, an optical disk (such as a compact disc (CD), digitalversatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, amemory card, and the like.

While the present invention has been described with reference toexemplary embodiments, it is to be understood that the invention is notlimited to the disclosed exemplary embodiments. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all such modifications and equivalent structures andfunctions.

This application claims the benefit of Japanese Patent Application No.2015-110806, filed May 29, 2015, which is hereby incorporated byreference herein in its entirety.

What is claimed is:
 1. An information processing apparatus comprising:at least one processor causing the information processing apparatus toact as; a first obtainment unit that performs a first obtainment processincluding transmitting, using Simple Network Management Protocol (SNMP),a search packet for requesting a plurality of types of deviceinformation including first device information and second deviceinformation, and obtaining the plurality of types of device informationin a response packet transmitted from a device that receives the searchpacket, wherein a condition in which the first device information andthe second device information are allowed to be obtained does not dependon settings of the device or functions of the device; a secondobtainment unit that performs a second obtainment process includingtransmitting a request packet for requesting third device informationthat is different from the plurality of types of device informationobtained by the first obtainment process, and obtaining the third deviceinformation in a response packet transmitted from the device thatreceives the request packet, wherein a condition in which the thirddevice information is allowed to be obtained depends on settings of thedevice or functions of the device; and a storage control unit thatstores, in a memory, the obtained device information by the firstobtainment process and the second obtainment process; wherein therequest packet transmitted in the second obtainment process is a packetfor requesting a single type of device information, and is transmittedseparately from the search packet transmitted in the first obtainmentprocess.
 2. The information processing apparatus according to claim 1,wherein after the first obtainment unit has performed the firstobtainment process, the second obtainment unit performs the secondobtainment process.
 3. The information processing apparatus according toclaim 1, wherein the second obtainment unit transmits, independentlyfrom the request packet for requesting the third device information, arequest packet for requesting fourth device information to the deviceusing the SNMP.
 4. The information processing apparatus according toclaim 3, wherein the second obtainment unit transmits a request packetfor requesting the third device information and a request packet forrequesting the fourth device information individually using a singleobject designation packet of the SNMP in the second obtainment process.5. The information processing apparatus according to claim 1, whereinthe first obtainment unit transmits the search packet using a multipleobject designation packet of the SNMP in the first obtainment process.6. The information processing apparatus according to claim 1, whereinthe second obtainment unit obtains the third device information byunicasting requests.
 7. The information processing apparatus accordingto claim 1, wherein the second obtainment unit transmits the requestpacket for requesting the third device information to the device thatresponded to the search packet for requesting the first and seconddevice information within a predetermined time limit.
 8. The informationprocessing apparatus according to claim 1, wherein the first obtainmentunit transmits the search packet for requesting the first and seconddevice information through broadcast or multicast.
 9. The informationprocessing apparatus according to claim 1, wherein the device is adevice having a printer function.
 10. The information processingapparatus according to claim 1, wherein a device is connected throughcommunication on the basis of the stored device information obtained bythe first obtainment process.
 11. An information processing methodcomprising: performing a first obtainment process includingtransmitting, using Simple Network Management Protocol (SNMP), a searchpacket for requesting a plurality of types of device informationincluding first device information and second device information andobtaining the plurality of types of device information in a responsepacket transmitted from a device that receives the search packet,wherein a condition in which the first device information and the seconddevice information are allowed to be obtained does not depend onsettings of the device or functions of the device; performing a secondobtainment process including transmitting a request packet forrequesting third device information that is different from the pluralityof types of device information obtained by the first obtainment process,and obtaining the third device information in a response packettransmitted from the device that receives the request packet, wherein acondition in which the third device information is allowed to beobtained depends on settings of the device or functions of the device;and storing, in a storage unit, the obtained device information by thefirst obtainment process and the second obtainment process; wherein therequest packet transmitted in the second obtainment process is a packetfor requesting a single type of device information, and is transmittedseparately from the search packet transmitted in the first obtainmentprocess.
 12. The information processing method according to claim 11,wherein after the first obtainment process has been performed, thesecond obtainment process is performed.
 13. The information processingmethod according to claim 11, wherein, in the second obtainment process,a request packet for requesting fourth device information aretransmitted, independently from the request packet for requesting thethird device information, to the device using the SNMP.
 14. Theinformation processing method according to claim 13, wherein, in thesecond obtainment process, a request packet for requesting the thirddevice information and a request packet for requesting the fourth deviceinformation are transmitted individually using a single objectdesignation packet of the SNMP.
 15. The information processing methodaccording to claim 11, wherein, in the first obtainment process, thesearch packet using a multiple object designation packet of the SNMP.16. The information processing method according to claim 11, wherein thethird device information is obtained by unicasting requests in thesecond obtainment process.
 17. The information processing methodaccording to claim 11, wherein, in the second obtainment process, therequest packet for requesting the third device information istransmitted to the device that responded to the search packet forrequesting the first and second device information within apredetermined time limit.
 18. The information processing methodaccording to claim 11, wherein, in the first obtainment process, thesearch packet for the first and second device information is transmittedthrough broadcast or multicast.
 19. The information processing methodaccording to claim 11, wherein the device is a device having a printerfunction.
 20. The information processing method according to claim 11,wherein a device is connected through communication on the basis of thestored device information obtained by the first obtainment process. 21.A non-transitory computer-readable medium in which is recorded a programfor causing a computer to function as: a first obtainment unit thatperforms a first obtainment process including transmitting, using SimpleNetwork Management Protocol (SNMP), a search packet for requesting aplurality of types of device information including first deviceinformation and second device information and obtaining the plurality oftypes of device information in a response packet transmitted from adevice that receives the search packet, wherein a condition in which thefirst device information and the second device information are allowedto be obtained does not depend on settings of the device or functions ofthe device; a second obtainment unit that performs a second obtainmentprocess including transmitting a request packet for requesting thirddevice information that is different from the plurality of types ofdevice information obtained by the first obtainment process, andobtaining the third device information in a response packet transmittedfrom the device that receives the request packet, wherein a condition inwhich the third device information is allowed to be obtained depends onsettings of the device or functions of the device; and a storage controlunit that stores, in a memory, the obtained device information by thefirst obtainment process and the second obtainment process; wherein therequest packet transmitted in the second obtainment process is a packetfor requesting a single type of device information, and transmittedseparately from the search packet in the first obtainment process.